package com.basics.api.response.channel;

import com.basics.post.entity.CyChannelPostFile;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;


@Data
public class PostInfoData  implements Serializable {

  @ApiModelProperty(value = "ID")
  private Long id;

  @ApiModelProperty("用户ID")
  private Long userId;

  @ApiModelProperty(value = "用户头像")
  private String avatar;

  @ApiModelProperty(value = "昵称")
  private String nickName;

  @ApiModelProperty(value = "帖子内容")
  private String content;

//  @ApiModelProperty(value = "图片链接")
//  private String imageUrls;

  @ApiModelProperty("板块名称")
  private String topicName;
  @ApiModelProperty("评论数量")
  private Integer commentNum;

  @ApiModelProperty("是否点赞")
  private Integer hasPrise;

  @ApiModelProperty("点赞数量")
  private Integer priseNum;

  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @ApiModelProperty("帖子发布时间")
  private Date createTime;

  @ApiModelProperty("是否创建者")
  private Boolean isCreateUser;

//  @ApiModelProperty(value = "封面图片")
//  private String coverImg;
//
//  @ApiModelProperty(value = "时长(秒)")
//  private Long duration;
//
//  @ApiModelProperty(value = "文件类型(1,图片,2视频)")
//  private Integer fileType;

  @ApiModelProperty("点赞用户列表")
  private List<PriseUserData> priseList;

  @ApiModelProperty("帖子附件列表")
  private List<CyChannelPostFile> fileList;
}
